package com.xoa.service.equipment;

import com.xoa.model.equipment.Equipment;
import com.xoa.model.users.Users;
import com.xoa.util.AjaxJson;
import com.xoa.util.LimsJson;
import com.xoa.util.ToJson;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface EquipmentService {

    public LimsJson<Equipment> selectAllEquipment(HttpServletRequest request, Integer page, Integer pageSize, Boolean userFlag, Integer equipTypeId, String column, String inptext);

    public LimsJson<Equipment> selectEquipmentByEquipTypeId(HttpServletRequest request, Integer equipTypeId);

    public LimsJson<Equipment> selectEquipmentByEquipId(HttpServletRequest request, Integer equipId);

    public LimsJson<Equipment> addEquipment(HttpServletRequest request, Equipment equipment);

    public LimsJson<Equipment> editEquipment(HttpServletRequest request, Equipment equipment, Integer equipId);

    public LimsJson<Equipment> deleteEquipment(HttpServletRequest request, Integer equipId);

    public LimsJson<Equipment> deleteArrayEquipment(HttpServletRequest request, String equipIds);

    public LimsJson<Object> editArrayEquipment(String json);

    public LimsJson<Object> togetherEquipCapy(Integer equipId);

    public LimsJson editEquipCapyValue(String equipCapyValueJson);

    LimsJson getEquipByTypeNoAndExpId(String typeNo);

    LimsJson selectEquipByField(String fieldName, String fieldValue, Integer page, Integer limit, Integer equipTypeId);

    LimsJson getEquipInfoByequipId(Integer equipId);

    LimsJson<Equipment> getEquipByIds(String ids);

    public ToJson<Users> getNewChDept(HttpServletRequest request, Integer deptId);

    //获取当前人的结算组织
    LimsJson getDeptExp(HttpServletRequest request);

    LimsJson selectAttchUrl(String attachId,HttpServletRequest request,String model);

    void download(HttpServletRequest request, HttpServletResponse response, String attendId, String model);

}
